* fix stop condition