fixed loop in md5 from io