fixes some focus issues