Fixed automatic folding.