[FIX] check return value of fread