fixing global constraint