fix CSV export bug / metric order fix