Fixed instantiation bug, and tolerance error.