Fix main / footer show bug