Fix notice error on using max() with only one variable