[minicattv] more patches to fix loop