fix for properly discarding listen elements