fix crash after stopping video record