Fix jumping while on platforms

(broken in cloud-walking fix)