plugView->attach not working correctly

Looks like the same issue as Plugin plugin window attach issue.