My brothers min pin use to do the same thing, he took him to the vets and they said as soon as both testies are down get him fixed. It work he hasn't done it since.