dog humping problems

I have a shitzu bichon who is around 3 years old, and is neatured. For the most part hes stopped humping, but when my girlfriend comes over he tries to hump her from the minute shes over until she leaves. he humps no one else but her. When my brothers girlfriend is over he never humps her, only my girlfriend. what is wrong with him?