bugfix: installCode may be null on first launch