fixed buggy metrics