Fix rewind issue in web UI