Fix sequence key bug.