Fix attributes of post model