Fix bug: resister's RegName must be atom