fix some issues about the extended rules