added deletion for duplicated entities in one gridItem