Fixed problems with pointers to cusp objects