Prevent crash from reading EOF.