fix gen metadata from queue