Fixed bug in PostType