Fix check-metadata