fix focus problem from external program