fix width/height replacement