Remove redundant line in register()