fixed bool exception issue