fixed bug in evaluation