fix shifting simulator bug