Fix mac os x long long reading bug