Partial revert of e7c27c9b8b. Single file preview works again.