fixed if syntax on stop