fix bug: serial stops working after saving scripts while app is running in Unity