What about deleting these two global variables? See comments below -