Fixed config passing, moving and copying.