Why is my character not listed under my primary skill?

The character API sometimes returns the secondary weapon set as the primary. Since builds are very different it is surprisingly hard to determine which weapon set should be used.