fixed bug in eval