fix issue when client sent PUT request