Bugfix for #317, fixed incorrectly swapped verification code.