Check index of gpt partition is in range.
Fix overlapped gpt pt entries.