fix css loading bugs