Fixed fread return value.