bug fix on svg tref test