fix the undefined behavior on main screen 3rd person cam offset