Fixed login brake caused by API change