fixed a bug in window evaluator