One last fix, variable was out of scope