Fixed missing local variable