Found the bug. Need to reverse upward collision detection.