fixed segfault. but reg.carp can no longer add 7+9 correctly