Fix focused element error