Fixes bug causing UI.prompt to raise