bug fix, stop records