fix livereplay crash