Repair the incorrect behaviour of "Quick installation".

This commit closes #2216.