Fixed bugs in evaluator.
Merge branch 'master' of https://github.com/ryanleong/LTC