fixed continuity error