fix issue with registering resources