fix resource registry