Fixed bug with prompt-duplication