Fixed exception in entry on error and in set_indexes with empty group list