Fixed a Bug in finding free slots for atomics indexes