fixed a bug in the subchirp generation