fixes space issue in resize util