Base: Fix huge bug in for loop