Fixed bug in simple.c example