Fixed stb auth (issue #2607)