Fixed placement of fgets line.