Fixed bugs in install controller