Maybe the ass is inflamed. You can shave all the hair around the anus and then apply some iodine tincture. If it's still like that, it may be infected. Just go to the hospital and prescribe some medicine. Bitches are more susceptible to infection. Male dogs should be fine.
Squeeze the anal gland for the dog once a month or so, or go to the pet hospital if you don't squeeze it.