fix the expanded status issue