Fixed bug for POST requests