fix cfl condition