Fixed a bug in stop_picflow