bugfix: can't open file that has failed to open before