Fix focus. Closes #3898