Fixing bugs with permission installer.