Corrected Bug with Reading File Header.