fix focus and typing