fix null context with auth enabled