Recurisve put on wrong resource