fixing boolean expression.