quick fix for small bug for concurrent modification