Fixed initializing min and max values of array item values.