fix broken var declaration