bugfix for POST requests