fix variable name case, fix exception message