fixed bug for jump, add reset function to Flow object