Files: fix the order fileactions are computed for a file