Fixed bool variable assignment