fixed showing sidebar bug