fix bug switching css