fix bug undefined ref,datasource