Fix change function in light.c