Please to change bool by boolean (we have replaced bool by boolean in most of our code ;))