Fixed bugs in equation_check and associated getters
and setters in model.js.