Fixed constraint errors.