fix metric analyzer builder bug