fixing focus problems