fix namespace prefix being inserted as 'none'