Fix chain.html layout issues.