css legacy template fix