fix plot ordering