fix some problem with format