fix light updating