[Issue 3] Fix for jittering when there are slopes that end in a wall