bugfix and improvements for sex offenders study