fix for constantly resetting focus