fixes focus cycle bug