Fixed variable name
Fixed error message