fix a bug in smoothing chromosome