fixed typo of variable name

error to errors