[bug] fixed the bug when src not null.