Variables are not correctly reinitialized when they're defined with a default value