fix start/stop recording issues