fix show hidden flag not persistent between restart
This should fix bug reported in comments of #278.