Fixed movement related issues.