fixed small bug in setContentType(), refs #102