Bugfix and FocusLost method added.