fix bug on put