Fixed content type setting bug

Closes #277 

Hey @devcritter could you please review this quick bug fix.