Fixed reversed condition within hest*EnsureCapacity()