Fixed file read issue