Fixed randoms issue with non-statics in entity

Fixed interactions issue with index in world.