fixes issues with AFNetworking