Fixes a crash in silk prefill (used for mode switching)