fixed boolean value updates bug