Fix infloop in indentation code