Hotfix crash in user middleware.