fix contribute plugin bugs