Fixed the focuslost auto error