A quick fix to getContentType