quick fix, rename local variable, change if statement