Fixed a pretty major bug related to ID allocation