fix bug: register insert bug