fixed evaluation of true/false in environment