Fixed issues with showPrompt property if the length of the list changes