fixed problem with assertion in checkTolerance failing