Fixing missing var