Fix bug in resize width