Fixing output var setting