Bug fixes for multiple sequences