also fix stack size exceeded error for when pressing cancel
$formOptions is not required