MultipleObjectsReturned exception fix