Fixed bug #410: Can not rotate log