bug fixes for post module