fix mimetypes read winreg bug