History length is now applied on correct array.