fixed error in hps time scaling