Bug 1069038 - TypeError: redeclaration of variable flags