fixed set focus logic.