fix bool type