Fix bug where posting type was overwritten