fix for #6 changed to always make the text to be black when the file is already open so the text is always readable