metrics service bug fix