fix bug when onlink