Set scope data before cloning