fixed sequence handling.