fixed #4 with two fscanfs