fixed time bug