fix loop/compare operators