Initialize min and max to be null and then check appropriately instead of making them 0