fixed a bug with same named items