#122 Fix incorrect variable assignment