fix code can't selection bug