Fixing a bug that happened when using a POST method on the API.