fixed a screw up in checkItem