fixed continuity errors