fixed rewind of null pointer