Fix check_items() method