fix width and height size bug.