Fixed bugs related to width/height/x/y (again).