Fix first certification generation when loader is injected