Handling metadata errors