Fix error with missing metadata