fix permissions on plugin