fix camera NoneType