Fix for default/incorrect variant (xml/json) being returned