Fixed stat & lstat for index entries.