fixed a bug on accordion