fix bug in flow frame