Bugfix: reversing conditional to get width and height