some fixes

Reverted a variable back to the correct name.