bugfix: return proper response for put