Made category selection pick the parent most category if avaliable (inst...

...ead of the fist one avaliable)