bugfix in function check_file_content.