Fixed metadata validation