replace keyword bool by boolean

It seems that the bool keyword should be boolean.