width and height was set twice