Fix for authentications using API