fix a bug for LIGHT and MEDIUM RIs