Fix converting config to attributes