Fixed ordering in planar_selection_matrix.