Fixed iteration bug in clearContainer that caused the first iteration to index 1 past container length