fixed some player movement bugs