Fixed post_type bug.