Disable code that aborts switching to preview mode.