You could start by giving us the plugin's sourcecode.. We aren't wizards( At least most of us aren't, i know a few witches and wizards on this forum which im not gonna tell you who they are, they ride on broomsticks etc.. ) and can't edit code that we don't have.. i'm sorry to dissapoint you :/