Fix for nested mime  in net35 branch