Fixed NPE if path not found