fix nil @conn in unbind