fixed a variable that was not renamed all over