[Kwant] Problem with elements of S-matrix not being smooth