Fix resource registration issue