Fixed the clone error and unknown errors.