Fixed a small bug in LoopExecutor.