Fixed the autoSubmit (requires a publicIdentifier)