fix firefox bug with contentType