Fixed a rare occurring bug. Yet another AIOOBE.