fix client script