Merge "Set max frequency as Max_Value of integer if it's negative."