Set focus mode logic fixed