fixed flow resize bug