fixing bug with width/height dimensions stored internally