fixed typo in error message

type fixed