Fixing an issue with the var rule