errfix: invalid fread size