Small fix to fix an edge case for falling off platforms