Fix a crash in block placement due to an inner loop that happened to be