make rewind work even after a restart