Set fold state correctly. Change length warning visualization