fixed crash in IndexEntry constructor