Fix histogram(:middle) when length of array is 1