Fixes second stage file loading.