The proposed patch fixed the duplicated code (by removing the repitition) but did not fix the original problem.