Fix exception caused by an incorrect range for the lighting bar