Fixed bug for creating new item