fixs bug with PUT for visitor