FIxed compile issue due to bool usage instead of boolean