Fixed a bug in shadow.c and missing SG_CALL.