Fixed PUT implementation