Fixes wall-sticking bug