fixed camera state saving