Bugfix for edit_lights handler