Fixed boolean error