Got legend order backwards