Uncaught exception when I try to set a prompt