fixed bug where plugins wouldn't be called