fix boolean type juggling