fix splace percent overflow bug