Fixed content type settting bug

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