Fixed Cast exception in mergeMultiple