another bug fixed for sequence generation