fixed bug related to PUT insert of stub resource