fix metric color's bug