fix special realpath error