fix auto sizing