fixing plot for primary metric