Pols agree to plug porn loophole