Fix bug for POST method