fix broken loop abort