fixed of prompt cancel behaviour