fixed authentication_helper bug