Fixed broken local variable assignments