fix plugin onload