correct autoresize text