Fixed for loop in readEntityList() which adds entities to entityList.