footer query bug fix