fix concurrent register bug