Working on comparison but not in if condition.
Fixed bug for uninitialized bool vars.