Fix a bug on the treatment of footer.