Fixing issue with multiple ids in maid results