fix metric complete bug