Fix initialisation bug when app version changes