Bobby would hump rather frantically sometimes when he was a little pup. As the others have said, distract him, ignore him, it will definitely get better. The behavior didn’t last very long at all. I think the important thing is to not to make a big deal of it.