Fixing mistake in send_mode()