Bulb calculation bugfix