Fix entity IDs not incrementing as intended.