bug fix: no longer passing the metadata property if it is empty.