Fix some crashes and MD5 entry mising.