fixed AuthenticatioManager for Api level 7