fixed crash after releasing camera