fix for 2.2

fixes #5 together with https://github.com/jmikola/AutoLogin/pull/7