fixed the footer behaviour