Boolean value problem solved