fix to plugin