errfix: invalid determin for fread returned value