fixed metadata validation