Small fix for main wrapper.