solving metrics bugs