fixed small bug in setContentType(), refs #103