fix to mega group order query which was a bit broken