fix flow attachment