Fixed example for setFocus