It's definitely not a genetic thing, it's a mental disorder that can be treated through psychiatric help. Only punishing them will serve no purpose because after they're done with jail, they'll go out and do what they used to do, so they must be diagnosed and treated.

I'm not always right, but I'm never wrong :P - Garfield