Fixed concurrent crash bug