Bug Fix

Updated variable name to prevent undefined variable warning