bugfix infinit-send-error

Should fix #187. This is untested!