[FIX] fixed a crash on switching between picture and camera mode twice in a row