Fixed a few bugs where the lighting would not regenerate correctly.