fix custom dimensions and metrics