Fix file preview in river