Fixed non-sequential row loading bug

Thanks @Emill