bug fix for nested plugins