bugfix for post type not applying closes #188