Fix MultipleObjectsReturned exception.