fix crash on wrong variable name