better way to fix plugin issue