fixed bug when adding new item