fix for when content type for json lies