Fixed file reading issue.