fixed rewind()