issue #5: get metadata name still have bugs