Fixed a number of bugs in PlayerController