fix committing Path from metadata