Fixed a NPE (on first install).