bug fixed for lighting