Further fixes to lightmeter.c