FIX: Seg-fault when loading sample lengths < 4

A sample length of at least 4 is required for setting up loops.