fix empty rtype and empty mime