If your dog is neutered then humping is most likely a sign of dominance. He wants to show other people where he is in rank. He may not hump you (as often) because he understands that you are leader. (by the way, my mum and I both had a good laugh about the above answer!)