fix the order of setns()