fixed bug in advanced-plugin