fixed prev last time bug and next last time bug.

fixed all time bug.