Fix state variable assignment via strings which was broken by the last commit