fixed get width and height