Fix implementation of listen for v1.3.x