fix focus switch