Fixed linux EOF failing