Add missing local variable declaration