Dayton gets bill to close sex offender loophole