fix bug when simple global constraint does not exist