Fixed debug running

Not runnable in debug because variable has been renamed in Release.