fix issue for PUT'ing data