fix getting script content