Fixed a bug in which submitting an invalid option would cause a disconnect.