Fixed firefox bug for collapse