Fix for invalid directory.