In order to avoid the segfault the modules for the loop do not have to range in regions for which 3 hit candidates are not even possible to be built.
This fixes some issues @samarian had and hopefully the bug found by @wouter when running in Default configuration.
Default