Fixed lots of bugs in my plugins