fix path of metadata