Fixed a minor bug on the get_metadata not returning null.