Fixed #5: Fix 'fread failed' errors. bug