$sm var name wrong