More bug fixes related to the light has many and destruction of associated records.