Avoid merging undefined config. closes #172. closes #178