Fix some footer layout bugs