Fixing variable declaration