bugfix: clearing fsms