Fixed headers/footers not being removed on clear