Initialize variable with the correct name that is actually used
Merge pull request #1199 from nevernormal1/fix_last_pointer

Initialize variable with the correct name that is actually used