fix overwriting width/height