Bug with file preview fixed