unregistered resource bug