[sr-dev] git:3.1: dialog: fix bug when detect_spirals enabled