Fixes constrains on file previews