fix css ref bug