fix metadata null pass to labelhelper exception bug