Fixed issue with incorrect referencing of variable

Variable prompt is now properly referenced in the code.