fix and do not include useless attribute in flow redirect