fix the segfault in ampersand