fix replace post with put