Fixed autoresize typo and bug #24