fixed issue with indexBy and array valued relations