Fixed character getting stuck bug