Fixed constraint completion bug.