fix a wrong error message in ItemFragment.__init__