fix sp detail bug