fixed more bugs with evaluateBoolean