Prevent freeze camera