There is nothing in the code that should trigger that. Typically that only happens of you physically select the object in the footer. That isn't happening in the code.