Fixed bug where prompt function would not be launched