Fixed config loader, cloning objects