Fix a issue that no targets are installed.