Fix wrong path when saving