fixing the multipleobjects exception