Use the correct variables
Merge pull request #218 from mfairchild365/fatal-error

Fix undefined variable errors