#880 Fix some errors when installing