Fixed problems on the Flowchart