Wrong check on read error