Fix deleting broken frames, now it is impossible to flush good frames