Fixed sandbox running in non-browser context.