Fixed a bug with thirdperson