Bug fix to send footer if present