fixed some bugs on installer.