Avoid crashes when modifying objects of a hidden section