fixed error in movefocus.