Fixes an issue with percentages of dimmer