fixed shift time problem