fixed indexing of unencrypted library