Minor modification to adjustWidth