bug fix for POST requests