Fixed error when installing targets