fixed crash related to "stop recording".