width and height bug corrected