Bug fix with var name