fixed bug in copying configuration