fix boolean convertion issue.