fixed issue with automatic day refresh