fixed copy and paste for statecharts