itemscount wasn't cleared properly,fixed + one improvement (synchronizer now uses appendedscripts too)