Update mond.c

fixed the segfault