Added SG_UNREF for prevent memory leak