fixed a time bug.