fix bug metric