resolve wrong logic in story name duplicate check