Fixes realpath error.