Fixed error in the variable name of item type check.