fix #30

added Gather constraint in server-end