fix boolean problem