register error fixed