minor fix to metrics handling