solve several issue caused by stylesheet change