fix bug about source-type