bugfix: installCode is null on first use