Fixed time scaling bug