closed #4590, fixed rewind problems