The condition was changed to use mi instead of parent during porting See 68273cc9
mentioned in commit aa828df3