fix forgotten local declaration