fix cola not stoppable in infinite mode
extra check in case layout not run yet