Attempt to fix CForeign moredata behaviour