fixed error in evaluation