fixed detection of variables assigned with scatter memo