fix bug with 3rd party plugins