Fixed bug with entryIndexIsValid calls