Fix type in the submit handler