Fix no category on resource breaking the map