fix bug that sent the last entities data for all entities