Fixed off-by-one error that caused empty spaces to appear sometimes in U...

...niformContainer.