FEND-1124 crossref bug <- variable scope error