Fix clipping bottom miscalculation