This is a common-place bug with inconsistent results. Goes without saying, but always initialize your variables.