Huge bug. Causing an endless loop

Oops, changed a true/false setting in one place, forgot the check-function.
My bad!