small fixure doing the require of plugins on next tick