Fixed bug when trying to print invalid file from disk