fix initial transition creation
fix errors in statemap