Fixed bugs with directional and spot lights.