Fixing possible invalid reference in concat