fix flowType