fix deleting old previews after file changed