fixed error on plugin page load