fixing sref: a macro was not getting evaluated early enough