fixed #237, critical bug in localOptimizations->tempMerger