Fixing bool -> var bug

Fixing bool -> var bug