bug fix #1, bad last_time init placement