There will be notices about undefined properties in
This is due to the clone method unsetting these variables. Instead they should be set to null.