fix bugs in footer background when enlarging