Fix typo, provide nicer error messages