fix bugs for spec of el5