Enabling evaluator to handle nan