Keep file visibility as before after file changed