FIX: overwrite content type on debug function