fix crash on archive event listeners during app startup