fix for server retun text/plain