fix bug on delete/get