fix errors in use of metrics library