Fixed doubletime bug