fixed bug in tempMerger