fixed arg error checking in gevents.c