Fix bugs with setting width, height, top, bottom, left and right