fixed a bug with flowisentropic