fix a camera crash