Fix Object has no method 'focus' error

Same error as last commit, but in different location.