Fix improper Boolean conversion.