fix bug of flows context