Fix footer code