Fixed uber nasty crash bug having to do with EntityRef pool