fixed bug with Boolean