fix rotation bug
avoid camera app crash on rotation