fix reference based metrics
rebuild