hotfix for loginapi