corrected a bug regarding the luminance