Error thrown

Attempt to assign property "level" on bool