I think this is because the handler for BO's on_entity_cloned event is not looking for event.source or event.destination, which are the parameters returned by on_entity_cloned, so it ends up indexing nil (https://github.com/Deadlock989/IndustrialRevolution/issues/138)