swapped two sections of the global point numbering code to avoid potential problems