fixing tracking player movement