Freezing rows in Calc

Recently, rows and columns Show / Freeze Cells / Freeze do not work in Calc. Sometimes I can freeze the first line for a while, then it stops working. I would like the first and second lines to be frozen.