min magnitude and merge fix