Fixed lua error caused by settings merging