fix flowControl