fix after_footer template bug