fixed a bug in accordion