Forgot modify fopen according to the change