fix #39; log rotate issue