Fixing typo and better warning