fixed referesh()  format with spaces
tempale 重新实现