Fix weird problem in variable declaration