fix bug in sample project
reduce memory usage of form flow trace storing mechanism(we should save the trace map only when necessary)