trigger resize twice on init