fixed the local var shadowing causing issues on rel build