Fix visualization bug and RegroupFSM bug

Signed-off-by: MHesham <mhesham.fcis@gmail.com>