fixes flow chart