Clones fix for functions files using data.table