fix css resource registration