Fixed the broken condition on the inPlaceMerge.