Consistent assignment of $contentType