Fixed folding bug for firefox