Fixed metadata bug