Fixed bugs in installer