fix a bug in escape.c(2)