Fixed bug for width and height