fixed re-size issue