Strange Scaling

When I try scale an area, it moves further up than doing it evenly like normal, what am I doing wrong?

At the top of the screen change the pivot point transform to median.

Thank you, it works normally now