Fixed error that sometimes occurred when installing an app (or installing the default apps)