Fixed an issue with the Install function