Fix for empty paths.