fixed bugs in installer