Fixed a bug when cloned Script object becomes PresentationObject