fixing raw metadata