Might have found the problem, needed to initialize a flag with a false
value.