Fixed file read bug that caused link name to be read incorrectly