Fixed a bug in sequence computer