fixed bug in in ShouldPromptUser function