Fixed a bug, when less then 4096 instances where created.