CPOrmCursor<T> cursor = new CPOrmCursor<>(tableDetails, super.loadInBackground());
if(cacheSize == 0){
cursor.enableCache();
} else if(cacheSize > 0) {
cursor.enableCache(cacheSize);
<BUG>}
for (int i = 0; i < cursor.getCount() && cursor.isCacheEnabled() && i < 100; i++) {
cursor.moveToPosition(i);</BUG>
T inflate = cursor.inflate();
}

CPOrmCursor<T> cursor = new CPOrmCursor<>(tableDetails, super.loadInBackground());
if(cacheSize == 0){
cursor.enableCache();
} else if(cacheSize > 0) {
cursor.enableCache(cacheSize);
}
int count = cursor.getCount();
for (int i = 0; i < count && cursor.isCacheEnabled() && i < 100; i++) {
cursor.moveToPosition(i);
T inflate = cursor.inflate();
}
